/*
 * Thread.hpp
 *
 *  Created on: 11.12.2012
 *      Author: zheka
 */

#ifndef THREAD_HPP_
#define THREAD_HPP_

#include <pthread.h>

class Thread {
private:
	pthread_t thread;

	Thread(const Thread& copy); // copy constructor denied
	static void * threadFunc(void * args);

public:
	Thread() {
	}
	virtual ~Thread() {
	}

	virtual void run() = 0;
	void start();
	void wait();

};

#endif /* THREAD_HPP_ */
